namespace TS2015.Models
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    [Table("TbQuyen")]
    public partial class TbQuyen
    {
        public TbQuyen()
        {
            TbChucNang_Quyen = new HashSet<TbChucNang_Quyen>();
            TbNguoiDungs = new HashSet<TbNguoiDung>();
        }

        [Key]
        public int MaQuyen { get; set; }

        [Required]
        [StringLength(50)]
        public string Quyen { get; set; }

        public int TrangThai { get; set; }

        public  ICollection<TbChucNang_Quyen> TbChucNang_Quyen { get; set; }

        public  ICollection<TbNguoiDung> TbNguoiDungs { get; set; }
    }
}
